package com.jl.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jl.commons.result.PageDataInfo;
import com.jl.model.Organization;

import java.util.Map;

/**
 * <p>
 * 组织结构表 服务类
 * </p>
 *
 * @author JiangJian
 * @since 2019-05-06
 */
public interface IOrganizationService extends IService<Organization> {

    void selectOrganizationDataGrid(PageDataInfo<Map<String,Object>> pageDataInfo, QueryWrapper<Organization> qw);

    /**
     * 查找名称是否被占用
     * @param name
     * @return
     */
    boolean isOrganizationNameUsed(String name);

    boolean  isOrganizationNameCanUse(String name,Long id);

}

